﻿using System;
using Skyper.Shared;
namespace Skyper.Phone.Model {
	public sealed class SkypeCache {
		#region Fields
		private ContactModel[] contacts;
		#endregion
		#region Private
		private void OnContactsUpdated() {
			if (this.ContactsUpdated == null) {
				return;
			}
			this.ContactsUpdated(this, EventArgs.Empty);
		}
		#endregion
		#region Public

		#endregion
		#region Property
		public ContactModel[] Contacts {
			get {
				return this.contacts;
			}
			set {
				this.contacts = value;
				OnContactsUpdated();
			}
		}
		#endregion
		#region Events
		public event EventHandler ContactsUpdated;
		#endregion
	}
}
